arr[x] = arr[x].lower() |
l = len(arr) |
print(arr) |
for x in range(l): |
arr = ["E","I","N","P","Q"] |
    arr[x] = arr[x].lower() |
l = len(arr) |
print(arr) |
for x in range(l): |
arr = ["E","I","N","P","Q"] |
1 | arr = ["E","I","N","P","Q"] |
2 | l = len(arr) |
3 | for x in range(l): |
4 |     arr[x] = arr[x].lower() |
5 | print(arr) |
print(arr) |
for x in range(l): |
arr[x] = 9 |
l = len(arr) |
arr = [9,5,2,1] |
print(arr) |
for x in range(l): |
    arr[x] = 9 |
l = len(arr) |
arr = [9,5,2,1] |
1 | arr = [9,5,2,1] |
2 | l = len(arr) |
3 | for x in range(l): |
4 |     arr[x] = 9 |
5 | print(arr) |
print(arr) |
for x in range(l): |
arr = [9,5,2,1] |
arr[x] = arr[x]/2 |
l = len(arr) |
print(arr) |
for x in range(l): |
arr = [9,5,2,1] |
    arr[x] = arr[x]/2 |
l = len(arr) |
1 | arr = [9,5,2,1] |
2 | l = len(arr) |
3 | for x in range(l): |
4 |     arr[x] = arr[x]/2 |
5 | print(arr) |
arr = [] |
print(arr) |
arr.append(x) |
for x in range(1,101): |
arr = [] |
print(arr) |
    arr.append(x) |
for x in range(1,101): |
1 | arr = [] |
2 | for x in range(1,101): |
3 |     arr.append(x) |
4 | print(arr) |
numArray = newArr |
print(numArray) |
newArr = [] |
l = len(numArray) |
for x in range(l): |
if numArray[x] != 3: |
newArr.append(numArray[x]) |
numArray = [1,2,3,4,5,6,7,8,9,10] |
numArray = newArr |
print(numArray) |
newArr = [] |
l = len(numArray) |
for x in range(l): |
    if numArray[x] != 3: |
        newArr.append(numArray[x]) |
numArray = [1,2,3,4,5,6,7,8,9,10] |
1 | numArray = [1,2,3,4,5,6,7,8,9,10] |
2 | newArr = [] |
3 | l = len(numArray) |
4 | for x in range(l): |
5 |     if numArray[x] != 3: |
6 |         newArr.append(numArray[x]) |
7 | numArray = newArr |
8 | print(numArray) |
print(numArray) |
l = len(numArray) |
newArr.append(numArray[x]) |
if numArray[x] % 2 == 0: |
numArray = [1,2,3,4,5,6,7,8,9,10] |
numArray = newArr |
for x in range(l): |
newArr = [] |
print(numArray) |
l = len(numArray) |
        newArr.append(numArray[x]) |
    if numArray[x] % 2 == 0: |
numArray = [1,2,3,4,5,6,7,8,9,10] |
numArray = newArr |
for x in range(l): |
newArr = [] |
1 | numArray = [1,2,3,4,5,6,7,8,9,10] |
2 | newArr = [] |
3 | l = len(numArray) |
4 | for x in range(l): |
5 |     if numArray[x] % 2 == 0: |
6 |         newArr.append(numArray[x]) |
7 | numArray = newArr |
8 | print(numArray) |
if x not in numArray: |
for x in range(0,301): |
print(x) |
numArray = [90, 163, 127, 156, 273, 212, 40, 262, 286, 81, 255, 200, 140, 194, 137, 133, 174, 157, 276, 158, 185, 278, 25, 69, 27, 266, 120, 75, 15, 92, 245, 228, 293, 88, 111, 84, 131, 107, 182, 234, 220, 22, 169, 28, 226, 94, 249, 76, 292, 10, 42, 296, 177, 205, 52, 209, 144, 161, 287, 196, 168, 4, 206, 282, 170, 29, 280, 31, 61, 123, 257, 98, 95, 7, 279, 251, 5, 66, 248, 162, 289, 204, 11, 60, 288, 56, 224, 272, 281, 233, 77, 106, 216, 142, 148, 260, 57, 253, 207, 8, 115, 130, 35, 179, 270, 70, 210, 53, 294, 49, 48, 254, 30, 67, 129, 165, 154, 132, 18, 187, 215, 199, 71, 145, 126, 149, 80, 275, 183, 213, 112, 134, 74, 171, 87, 221, 242, 6, 268, 152, 256, 258, 285, 237, 89, 17, 65, 24, 9, 208, 38, 19, 101, 176, 136, 240, 85, 235, 114, 105, 155, 72, 193, 283, 14, 241, 159, 104, 151, 32, 284, 45, 135, 236, 113, 188, 55, 201, 198, 180, 97, 178, 247, 167, 46, 47, 100, 122, 189, 232, 202, 164, 299, 118, 297, 91, 219, 34, 109, 99, 39, 68, 211, 108, 150, 269, 166, 43, 143, 21, 0, 51, 1, 117, 59, 50, 128, 214, 44, 141, 246, 82, 173, 153, 274, 124, 93, 277, 160, 265, 110, 23, 125, 267, 121, 229, 73, 298, 26, 116, 139, 184, 3, 37, 54, 78, 13, 181, 138, 295, 186, 244, 225, 192, 103, 227, 64, 36, 259, 12, 146, 33, 41, 175, 252, 83, 239, 20, 300, 217, 203, 79, 58, 291, 191, 243, 223, 96, 250, 62, 264, 195, 271, 86, 2, 238, 102, 190, 263, 119, 261, 63, 16, 230, 218, 147, 231, 290, 172, 197] |
newArr = [] |
    if x not in numArray: |
for x in range(0,301): |
        print(x) |
numArray = [90, 163, 127, 156, 273, 212, 40, 262, 286, 81, 255, 200, 140, 194, 137, 133, 174, 157, 276, 158, 185, 278, 25, 69, 27, 266, 120, 75, 15, 92, 245, 228, 293, 88, 111, 84, 131, 107, 182, 234, 220, 22, 169, 28, 226, 94, 249, 76, 292, 10, 42, 296, 177, 205, 52, 209, 144, 161, 287, 196, 168, 4, 206, 282, 170, 29, 280, 31, 61, 123, 257, 98, 95, 7, 279, 251, 5, 66, 248, 162, 289, 204, 11, 60, 288, 56, 224, 272, 281, 233, 77, 106, 216, 142, 148, 260, 57, 253, 207, 8, 115, 130, 35, 179, 270, 70, 210, 53, 294, 49, 48, 254, 30, 67, 129, 165, 154, 132, 18, 187, 215, 199, 71, 145, 126, 149, 80, 275, 183, 213, 112, 134, 74, 171, 87, 221, 242, 6, 268, 152, 256, 258, 285, 237, 89, 17, 65, 24, 9, 208, 38, 19, 101, 176, 136, 240, 85, 235, 114, 105, 155, 72, 193, 283, 14, 241, 159, 104, 151, 32, 284, 45, 135, 236, 113, 188, 55, 201, 198, 180, 97, 178, 247, 167, 46, 47, 100, 122, 189, 232, 202, 164, 299, 118, 297, 91, 219, 34, 109, 99, 39, 68, 211, 108, 150, 269, 166, 43, 143, 21, 0, 51, 1, 117, 59, 50, 128, 214, 44, 141, 246, 82, 173, 153, 274, 124, 93, 277, 160, 265, 110, 23, 125, 267, 121, 229, 73, 298, 26, 116, 139, 184, 3, 37, 54, 78, 13, 181, 138, 295, 186, 244, 225, 192, 103, 227, 64, 36, 259, 12, 146, 33, 41, 175, 252, 83, 239, 20, 300, 217, 203, 79, 58, 291, 191, 243, 223, 96, 250, 62, 264, 195, 271, 86, 2, 238, 102, 190, 263, 119, 261, 63, 16, 230, 218, 147, 231, 290, 172, 197] |
newArr = [] |
1 | numArray = [90, 163, 127, 156, 273, 212, 40, 262, 286, 81, 255, 200, 140, 194, 137, 133, 174, 157, 276, 158, 185, 278, 25, 69, 27, 266, 120, 75, 15, 92, 245, 228, 293, 88, 111, 84, 131, 107, 182, 234, 220, 22, 169, 28, 226, 94, 249, 76, 292, 10, 42, 296, 177, 205, 52, 209, 144, 161, 287, 196, 168, 4, 206, 282, 170, 29, 280, 31, 61, 123, 257, 98, 95, 7, 279, 251, 5, 66, 248, 162, 289, 204, 11, 60, 288, 56, 224, 272, 281, 233, 77, 106, 216, 142, 148, 260, 57, 253, 207, 8, 115, 130, 35, 179, 270, 70, 210, 53, 294, 49, 48, 254, 30, 67, 129, 165, 154, 132, 18, 187, 215, 199, 71, 145, 126, 149, 80, 275, 183, 213, 112, 134, 74, 171, 87, 221, 242, 6, 268, 152, 256, 258, 285, 237, 89, 17, 65, 24, 9, 208, 38, 19, 101, 176, 136, 240, 85, 235, 114, 105, 155, 72, 193, 283, 14, 241, 159, 104, 151, 32, 284, 45, 135, 236, 113, 188, 55, 201, 198, 180, 97, 178, 247, 167, 46, 47, 100, 122, 189, 232, 202, 164, 299, 118, 297, 91, 219, 34, 109, 99, 39, 68, 211, 108, 150, 269, 166, 43, 143, 21, 0, 51, 1, 117, 59, 50, 128, 214, 44, 141, 246, 82, 173, 153, 274, 124, 93, 277, 160, 265, 110, 23, 125, 267, 121, 229, 73, 298, 26, 116, 139, 184, 3, 37, 54, 78, 13, 181, 138, 295, 186, 244, 225, 192, 103, 227, 64, 36, 259, 12, 146, 33, 41, 175, 252, 83, 239, 20, 300, 217, 203, 79, 58, 291, 191, 243, 223, 96, 250, 62, 264, 195, 271, 86, 2, 238, 102, 190, 263, 119, 261, 63, 16, 230, 218, 147, 231, 290, 172, 197] |
2 | newArr = [] |
3 | for x in range(0,301): |
4 |     if x not in numArray: |
5 |         print(x) |
6 |          |
zeroes = zeroes + 1 |
zeroes = 0 |
newArr.append(numArray[x]) |
else: |
print(numArray) |
newArr = [] |
if numArray[x] == 0: |
numArray = [0,1,0,2,0,3,0,4,0,5] |
for x in range(l): |
l = len(numArray) |
numArray = newArr |
newArr.append(0) |
for x in range(zeroes): |
        zeroes = zeroes + 1 |
zeroes = 0 |
        newArr.append(numArray[x]) |
    else: |
print(numArray) |
newArr = [] |
    if numArray[x] == 0: |
numArray = [0,1,0,2,0,3,0,4,0,5] |
for x in range(l): |
l = len(numArray) |
numArray = newArr |
    newArr.append(0) |
for x in range(zeroes): |
1 | numArray = [0,1,0,2,0,3,0,4,0,5] |
2 | newArr = [] |
3 | zeroes = 0 |
4 | l = len(numArray) |
5 | for x in range(l): |
6 |     if numArray[x] == 0: |
7 |         zeroes = zeroes + 1 |
8 |     else: |
9 |         newArr.append(numArray[x]) |
10 | |
11 | for x in range(zeroes): |
12 |     newArr.append(0) |
13 | numArray = newArr |
14 | print(numArray) |
print(subjects) |
subjects[x] = subjects[x][:5] |
subjects = ["Science", "Maths", "English", "History", "Geography"] |
for x in range(len(subjects)): |
print(subjects) |
    subjects[x] = subjects[x][:5] |
subjects = ["Science", "Maths", "English", "History", "Geography"] |
for x in range(len(subjects)): |
1 | subjects = ["Science", "Maths", "English", "History", "Geography"] |
2 | for x in range(len(subjects)): |
3 |     subjects[x] = subjects[x][:5] |
4 | print(subjects) |
print(subjects) |
for x in range(len(subjects)): |
subjects = ["Science", "Art", "English", "Math", "Geography"] |
for y in range(l): |
subjects[x] = subjects[x] + "." |
if len(subjects[x]) < 5: |
l = 5 - len(subjects[x]) |
print(subjects) |
for x in range(len(subjects)): |
subjects = ["Science", "Art", "English", "Math", "Geography"] |
        for y in range(l): |
            subjects[x] = subjects[x] + "." |
    if len(subjects[x]) < 5: |
        l = 5 - len(subjects[x]) |
1 | subjects = ["Science", "Art", "English", "Math", "Geography"] |
2 | for x in range(len(subjects)): |
3 |     if len(subjects[x]) < 5: |
4 |         l = 5 - len(subjects[x]) |
5 |         for y in range(l): |
6 |             subjects[x] = subjects[x] + "." |
7 | print(subjects) |
8 |              |
numArray = [1,2,3,4,5,6,7,8,9,10] |
if numArray[x] > max: |
for x in range(1,len(numArray)): |
print(max) |
max = numArray[x] |
max = numArray[0] |
numArray = [1,2,3,4,5,6,7,8,9,10] |
    if numArray[x] > max: |
for x in range(1,len(numArray)): |
print(max) |
        max = numArray[x] |
max = numArray[0] |
1 | numArray = [1,2,3,4,5,6,7,8,9,10] |
2 | max = numArray[0] |
3 | for x in range(1,len(numArray)): |
4 |     if numArray[x] > max: |
5 |         max = numArray[x] |
6 | print(max) |
7 |          |
for x in range(1,len(numArray)): |
print(min) |
if numArray[x] < min: |
numArray = [1,2,3,4,5,6,7,8,9,10] |
min = numArray[x] |
min = numArray[0] |
for x in range(1,len(numArray)): |
print(min) |
    if numArray[x] < min: |
numArray = [1,2,3,4,5,6,7,8,9,10] |
        min = numArray[x] |
min = numArray[0] |
1 | numArray = [1,2,3,4,5,6,7,8,9,10] |
2 | min = numArray[0] |
3 | for x in range(1,len(numArray)): |
4 |     if numArray[x] < min: |
5 |         min = numArray[x] |
6 | print(min) |
c = c + 1 |
if numArray[x] == i: |
print(c) |
for x in range(1,len(numArray)): |
i = int(i) |
numArray = [1,2,3,4,5,6,7,8,9,10] |
c = 0 |
i = input() |
        c = c + 1 |
    if numArray[x] == i: |
print(c) |
for x in range(1,len(numArray)): |
i = int(i) |
numArray = [1,2,3,4,5,6,7,8,9,10] |
c = 0 |
i = input() |
1 | numArray = [1,2,3,4,5,6,7,8,9,10] |
2 | i = input() |
3 | i = int(i) |
4 | c = 0 |
5 | for x in range(1,len(numArray)): |
6 |     if numArray[x] == i: |
7 |         c = c + 1 |
8 | print(c) |
9 |          |
if numArray[x] == i: |
i = int(i) |
numArray = [1,2,3,4,5,6,7,8,9,10] |
for x in range(1,len(numArray)): |
break |
i = input() |
print(numArray) |
numArray.pop(x) |
    if numArray[x] == i: |
i = int(i) |
numArray = [1,2,3,4,5,6,7,8,9,10] |
for x in range(1,len(numArray)): |
        break |
i = input() |
print(numArray) |
        numArray.pop(x) |
1 | numArray = [1,2,3,4,5,6,7,8,9,10] |
2 | i = input() |
3 | i = int(i) |
4 | for x in range(1,len(numArray)): |
5 |     if numArray[x] == i: |
6 |         numArray.pop(x) |
7 |         break |
8 | print(numArray) |
i = int(i) |
numArray = [1,2,3,4,5,6,7,8,9,10] |
for x in range(1,len(numArray)): |
if numArray[x] == i: |
print(x) |
i = input() |
break |
i = int(i) |
numArray = [1,2,3,4,5,6,7,8,9,10] |
for x in range(1,len(numArray)): |
    if numArray[x] == i: |
        print(x) |
i = input() |
        break |
1 | numArray = [1,2,3,4,5,6,7,8,9,10] |
2 | i = input() |
3 | i = int(i) |
4 | for x in range(1,len(numArray)): |
5 |     if numArray[x] == i: |
6 |         print(x) |
7 |         break |
numArray = [1,2,3,4,5,6,7,8,9,10] |
for x in range(1,len(numArray)): |
print(numArray) |
i = len(numArray) - 1 - x |
newArr = [] |
newArr.append(numArray[i]) |
numArray = [1,2,3,4,5,6,7,8,9,10] |
for x in range(1,len(numArray)): |
print(numArray) |
    i = len(numArray) - 1 - x |
newArr = [] |
    newArr.append(numArray[i]) |
1 | numArray = [1,2,3,4,5,6,7,8,9,10] |
2 | newArr = [] |
3 | for x in range(1,len(numArray)): |
4 |     i = len(numArray) - 1 - x |
5 |     newArr.append(numArray[i]) |
6 | print(numArray) |
print(numArray) |
i = len(numArray) - 1 - x |
numArray.pop(i) |
numArray = [5,7,6,4,2,1,4,2,3,1,4] |
if numArray[i] == 4: |
for x in range(len(numArray)): |
print(numArray) |
    i = len(numArray) - 1 - x |
        numArray.pop(i) |
numArray = [5,7,6,4,2,1,4,2,3,1,4] |
    if numArray[i] == 4: |
for x in range(len(numArray)): |
1 | numArray = [5,7,6,4,2,1,4,2,3,1,4] |
2 | for x in range(len(numArray)): |
3 |     i = len(numArray) - 1 - x |
4 |     if numArray[i] == 4: |
5 |         numArray.pop(i) |
6 | print(numArray) |
for x in range(len(numArray)): |
if numArray[x] + numArray[y] == i: |
numArray = [5,7,6,4,2,1,4,2,3,1,4] |
i = int(i) |
i = input() |
for y in range(len(numArray)): |
print(str(numArray[x]) + "+" + str(numArray[y])) |
for x in range(len(numArray)): |
        if numArray[x] + numArray[y] == i: |
numArray = [5,7,6,4,2,1,4,2,3,1,4] |
i = int(i) |
i = input() |
    for y in range(len(numArray)): |
            print(str(numArray[x]) + "+" + str(numArray[y])) |
1 | numArray = [5,7,6,4,2,1,4,2,3,1,4] |
2 | i = input() |
3 | i = int(i) |
4 | for x in range(len(numArray)): |
5 |     for y in range(len(numArray)): |
6 |         if numArray[x] + numArray[y] == i: |
7 |             print(str(numArray[x]) + "+" + str(numArray[y])) |
index = index + numArray[index] |
break |
print(count) |
numArray = [2,3,1,1,4] |
while True: |
count = count + 1 |
count = 0 |
index = 0 |
if index >= len(numArray): |
    index = index + numArray[index] |
        break |
print(count) |
numArray = [2,3,1,1,4] |
while True: |
    count = count + 1 |
count = 0 |
index = 0 |
    if index >= len(numArray): |
1 | numArray = [2,3,1,1,4] |
2 | index = 0 |
3 | count = 0 |
4 | while True: |
5 |     if index >= len(numArray): |
6 |         break |
7 |     index = index + numArray[index] |
8 |     count = count + 1 |
9 | print(count) |